/*
Author: Surpass-HC
Source: https://gitee.com/hxchuan000/clpc-1
Mail: surpass-hc@qq.com
*/
#pragma once
#include <stdio.h>
#include <cstring.h>

int foptRead(const char *filename, char *outstr, long outsize);
int foptWrite(const char *filename, const char *instr, long insize);

int fileOptReadAll(const char *filename, struct cstring *outstr);
int fileOptWrite(const char *filename, const struct cstring *instr);

int cMakeDir(const char *pathName);
int cRemoveFile(const char *fileName);
int foptCreate(const char *filename);
int foptCreateIfNotExist(const char *filename);
int fOffsetWrite(const char *filename, long foffset, const char *instr, long insize);
int fOffsetRead(const char *filename, long foffset, char *outstr, long outsize);
long fGetFileLen(const char *filename);
